package cn.myfirefly.moming.common.dao;

import java.util.List;

import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.stereotype.Repository;

import cn.myfirefly.moming.common.entity.MmDataAuthObject;
import cn.myfirefly.moming.common.model.DataAuthObjectFilterDto;
import cn.myfirefly.core.BaseFilterDao;

@Repository
public class DataAuthObjectDao extends BaseFilterDao<MmDataAuthObject, DataAuthObjectFilterDto> {

	@SuppressWarnings("unchecked")
	public List<MmDataAuthObject> getList() {
		Session session = getCurrentSession();
		StringBuffer querySql = new StringBuffer("from MmDataAuthObject r where 1=1 ");
		Query query = session.createQuery(querySql.toString());
		return query.list();
	}
}
